package com.swgk.core.base.api;

import com.swgk.core.base.model.entity.BaseEntity;
import com.swgk.core.base.model.entity.BehaviourFlowLog;
import com.swgk.core.base.model.factory.BaseUrlInterceptor;
import com.swgk.core.view.entity.EnterpriseEditEntity;
import com.swgk.core.view.entity.PermissionEntity;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Query;
import retrofit2.http.Url;

/**
 * @author 张驰
 * @date 2021/7/16 9:30
 * @Description 当前app收集用户行为接口
 * @name com.sgb.kjwl.api.service
 */
public interface AppFolwLogApi {

//    @POST("shigongbang-analysis/v3/behaviour/flow/log")
    @POST
    @Headers("tokenType:pc")
    Call<String> putBehaviourFlowLog(@Url String url, @Body BehaviourFlowLog behaviourFlowLog);

    //用户物流权限
    @GET("logistics/operate/user/getPermissions")
    Call<BaseEntity<PermissionEntity>> getLogisticsPermissions();

    //获取首页企业推荐列表
    @Headers({BaseUrlInterceptor.HEADERS_URL_HOME, "tokenType:pc"})
    @GET("v1/app/index/getAllIndexListNew")
    Call<BaseEntity<List<EnterpriseEditEntity>>> getEnterpriseRecListNew(@Query("areaCode") Integer type);
}
